package MyArrayList1;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(6);
        myArrayList.add(7);
        myArrayList.add(8);
        myArrayList.add(9);
        myArrayList.add(10);
        myArrayList.add(11);
        myArrayList.display();
        System.out.println("------------------");
        myArrayList.add(0,11);
        myArrayList.add(1,22);
        myArrayList.add(2,33);
        myArrayList.display();


//        System.out.println( myArrayList.contains(44));
//        System.out.println(myArrayList.contains(33));
//
//        System.out.println(myArrayList.indexOf(10));

        //System.out.println(myArrayList.get(55));

//        myArrayList.set(5,545);
//        myArrayList.display();
//        myArrayList.remove(7);
//        myArrayList.remove(10);
        myArrayList.clear();
        myArrayList.display();

    }
}
